﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace Project01
{
    class MonsterType04:Monster
    {
      
         public MonsterType04(Game game )
            : base(game)
        {
                this.ObjectTexture = game.Content.Load<Texture2D>("Images/Monster/Mtype04");
                this.Sprite = new AnimationSprite(ObjectTexture, 1, 4);
                this.Speed = 2.5f;
                this.Health = 2;
                this.game = game;
        }
         public override void Update(GameTime gameTime)
         {
             Exp.Sprite.Position = SetPositionExplosion(Sprite.Position, 10, 0);
             Sprite.Update();
             Sprite.Position = Move.MoveVertical(Sprite.Position, -Speed);
             Active = CheckPosition(Sprite.Position);
             base.Update(gameTime);
         }
       
         public override void Draw(SpriteBatch SpriteBatch)
         {
            
             base.Draw(SpriteBatch);
         }
    }
}
